package com.hcc.export.helper.test.service;

import com.github.jsonzou.jmockdata.JMockData;
import com.hcc.export.helper.test.domain.MyData;
import com.hcc.export.helper.test.domain.MyParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * ExportMockService
 *
 * @author hushengjun
 * @date 2024/1/8
 */
@Slf4j
@Service
public class ExportMockService {

    public List<MyData> list(MyParam myParam) {
        log.info("入参：{}", myParam);

        List<MyData> myData = new ArrayList<>();
        for (int i = 0; i < 500; i++) {
            MyData productPo = JMockData.mock(MyData.class);
            myData.add(productPo);
        }

        return myData;
    }

}
